package com.lagou.rpc.consumer.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Configuration
@ConfigurationProperties(prefix = "server.registry")
@Data
public class ServerRegistryConfiguration {
    // 服务器列表配置信息
    private List<ServerInfo> servers;

    @Data
    public static class ServerInfo {
        private String ip;
        private int port;
    }
}
